const { reverseList,LinkedList } = PacktDataStructuresAlgorithms;

let list = new LinkedList();
list.push(15);
list.push(10);
list.push(13);
list.push(11);
list.push(12);
list.push(14);

// const newList = reverseList(list);
// console.log('new',newList);
const prev = list.reverseList(list.getHead());
console.log('prev',prev);

console.log('list.toString() => ', list.toString());

